package com.wxw.springcloud.seata.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * @author wxw
 * @data 2021/11/14 20 :31
 * @description
 */
@Mapper
public interface TradeMapper {

    @Update("update trade set stock=stock-1 where id=#{id}")
    void reduceStockById(Integer id);
}
